package cn.gl.basic.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseQuery {
    private Integer pageNum = 1;

    private Integer pageSize = 5;

    //接收高级查询参数
    private String keyword;

    private  Long types_id;

    public Integer getPage(){
        return (this.pageNum-1)*this.pageSize;
    }
}
